#include"Shm.hpp"
#include"Fifo.hpp"
#include"Comm.hpp"
int main(){
    //获取共享内存
    //映射到自己的空间
    FileOper fileOper(PATH,FIFO_FILE);
    fileOper.OpenForWrite();
    Shm Shm(pathname,projid,USER);
    char*men=(char*)Shm.VirtualAddr();
    int index=0;
    for(char c='A';c<='Z';c++,index+=2){
        sleep(1);
       men[index]=c;
       sleep(1);
        men[index+1]=c;
       fileOper.Wakeup();
    }
    fileOper.Close();
    return 0;
}